<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link href="template/public/css/clientPublic.css" rel="stylesheet" type="text/css"/>
<link href="template/public/css/codeMgr.css" rel="stylesheet" type="text/css"/>
<link href="template/public/css/tabSwitch.css" rel="stylesheet" type="text/css"/>
<link type="text/css" media="screen" charset="utf-8" rel="stylesheet" href="template/default/content/css/style.account-1.1.css" />
<link charset="utf-8" rel="stylesheet" href="template/default/content/css/personal.record-1.0.css" media="all" />
<style type="text/css"> 
.tip-faq{
	clear:both;
	margin-top:0px;
}
#J-table-consume{
	margin-bottom:40px;
}
.ui-form-tips .m-cue{
	 background-position: -27px -506px;
	 *background-position: -27px -505px;
}
#J-set-date a{
	font-family:宋体;
}
</style>
<script type="text/javascript" charset="utf-8" src="template/default/content/js/arale.js"></script>
<script charset="utf-8" src="template/default/content/js/recordIndex.js?t=20110523"></script>
<script language="javascript" type="text/javascript" src="template/default/js/jquery.min.js"></script>
<script language="javascript" type="text/javascript" src="template/default/content/js/common.js"></script>
<script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script>
<script type="text/javascript"> 
E.onDOMReady(function() {

	record = new AP.widget.Record({
		dom: {
			queryForm : "queryForm",
			searchForm : "topSearchForm",
			keyword : "J-keyword",
			keywordType : "J-keyword-type"
		}
	});

	//切换高级筛选状态
	E.on('J-filter-link', 'click', record.switchFilter);
});
function show_help()
{
   mytop=(screen.availHeight-430)/2;
   myleft=(screen.availWidth-800)/2;
   window.open("admin.php?ac=view&fileurl=help&helpid=<?=$fileurl?>","","height=470,width=800,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=yes");
}
</script>
<title>Office 515158 2011 OA办公系统</title>
 
</head>
<body>
<div id="Holder">
<div id="MainPage">

 
 
<div id="Subnav">
 
<ul>
 <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                          <tr>
                                            <td width="91%">
											<a href="#" onClick="show_help()">使用帮助文档？</a>
				<span class="ui-separator-pd">|</span>
			<a href="http://bbs.515158.com/" target="_blank">使用遇到问题？</a></td>
                                            <td width="9%" align="right" style="padding-right:10px;">
											<input type="button" value="新建表单" class="BigButtonBHover" onClick="javascript:window.location='admin.php?ac=work_form_add&fileurl=work&template_id=<?=$_GET["template_id"]?>&type_id=<?=$_GET["type_id"]?>'">
											</td>
                                          </tr>
                                        </table>

</ul>
</div>
<div id="MainBody">

<form name="update" method="post" action="admin.php?ac=work_form&fileurl=work&template_id=<?=$_GET["template_id"]?>&type_id=<?=$_GET["type_id"]?>">
<div id="CodeWrap">
<div id="TabSwitch">
<ul>
<li><a href="admin.php?ac=template&fileurl=work">模板管理</a></li>
<li class="active"><a href="admin.php?ac=work_form&fileurl=work&template_id=<?=$_GET["template_id"]?>&type_id=<?=$_GET["type_id"]?>">表单管理</a></li>
</ul>

 
</div>
<div id="CodeShowBlockWrap">
<div id="QueryBar">
<div id="FilterWrap">
<label for="FilterStatus">
<table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
  <tr>
    <td width="15%">
	<input type="checkbox" class="checkbox" value="1" name="chkall" onClick="check_all(this)" /><b>全选</b>&nbsp;&nbsp;<input type="submit" name="do" id="button" value="删 除"/>
	</td>
    <td width="85%" align="left" class="multipage"><?=showpage($num,$pagesize,$page,$url)?></td>
  </tr>
</table>
</label>
</div>
</div>

<div id="CodeShowBlock">
<table cellpadding="0" cellspacing="0" class="data-box"><thead>
<tr class="border-in">
<th width="36"><div>选项</div></th>
<th class="title"><div>表单名称</div></th>
<th class="title"><div>控件名称</div></th>
<th class="status"><div>默认值</div></th>
<th class="scale"><div>类型</div></th>
<th class="scale"><div>表单类型</div></th>
<th class="scale"><div>验证方式</div></th>
<th class="scale"><div>发布时间</div></th>
<th class="scale"><div>发布人</div></th>
<th class="status"><div>操作</div></th>
</tr>
</thead><tbody>

<?foreach ($result as $row) {?>
<tr class="data-box-row"><td width="36" align="center">
<?php
$tpl = $db->fetch_one_array("SELECT temptype FROM ".DB_TABLEPRE."workclass_template  WHERE id = '".$row['template_id']."' and unionid='".union_id."'");
if($tpl['temptype']!='1'){
get_checkbox_list_key("id[]",$row['id'],$row['uid'],$_USER->id);
}else{
echo '<input type="checkbox" name="id[]" value="'.$row['id'].'" disabled="disabled" />';
}
?>

</td>
<td class="title"><?=$row['formname']?></td>
<td class="status"><?=$row['inputname']?></td>
<td class="status"><?=$row['inputvalue']?>
</td>
<td class="status">
<?php
if($row["type"]=='1'){
echo '<font color=red>图片</font>';
}elseif($row["type"]=='2'){
echo '<font color=#006600>附件</font>';
}elseif($row["type"]=='3'){
echo '<font color=#006600>日期</font>';
}elseif($row["type"]=='4'){
echo '<font color=#006600>部门</font>';
}elseif($row["type"]=='5'){
echo '<font color=#006600>成员</font>';
}elseif($row["type"]=='0'){
echo '<font color=#006600>表单</font>';
}elseif($row["type"]=='6'){
echo '<font color=#006600>多输入列表</font>';
}
?>

</td>
<td class="status">
<?php
if($row["inputtype"]=='1'){
echo '<font color=red>输入框</font>';
}elseif($row["inputtype"]=='2'){
echo '<font color=#006600>输入区</font>';
}elseif($row["inputtype"]=='3'){
echo '<font color=#006600>单选</font>';
}elseif($row["inputtype"]=='4'){
echo '<font color=#006600>复选</font>';
}elseif($row["inputtype"]=='5'){
echo '<font color=#006600>下拉</font>';
}
?>

</td>
<td class="status">
<?php
if($row["confirmation"]=='1'){
echo '<font color=red>是</font>';
}elseif($row["confirmation"]=='2'){
echo '<font color=#006600>否</font>';
}
?>
</td>

<td class="status"><?=$row['date']?></td>
<td class="scale"><?=GET_INC_USER_NAME($row['uid'])?></td>
<td class="scale">

<?php
//if($tpl['temptype']!='1'){
get_url_list_key("编辑","admin.php?ac=work_form_edit&do=list&fileurl=work&id=".$row['id']."&template_id=".$_GET["template_id"]."&type_id=".$_GET["type_id"]."","".$row['uid']!=$_USER->id);
//}?>
</td>					
</tr>
<?}?>


</tbody></table>
 
</div>
<div id="PageControl">
<div class="page-control">
<div class="border-in">
<table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
  <tr>
    <td width="15%">&nbsp;&nbsp;<input type="checkbox" class="checkbox" value="1" name="chkall" onClick="check_all(this)" /><b>全选</b>&nbsp;&nbsp;<input type="submit" name="do" id="button" value="删 除"/></td>
    <td width="85%" align="left" class="multipage"><?=showpage($num,$pagesize,$page,$url)?></td>
  </tr>
</table>
  

</div>
</div>
</div>
</div>
</div>
 </form>
</div>
</div>
</div>
 
<script language="javascript" src="javascripts01/tangram-1.3.1.js" type="text/javascript"></script>
<script language="javascript" src="javascripts01/elf.js" type="text/javascript"></script>
<script language="javascript" src="javascripts01/union.js" type="text/javascript"></script>
<script language="javascript" src="javascripts01/codeMgr.js" type="text/javascript"></script>
 
</body>
</html>
